package com.ruoyi.web.core.config;


public class SwaggerMap {

    public final static String prefix = "swaggerPrefix";

    public final static String getUserInfoById = prefix+"getUserInfoById";

    public final static String all = prefix+"all";

    public static void init(){

        /**
         * 获取单个用户信息
         */
        new SwaggerMapObject(getUserInfoById,
                SwaggerMapColum.put("id","编号","string"),
                SwaggerMapColum.put("name","姓名","string"),
                SwaggerMapColum.put("sex","性别","string"),
                SwaggerMapColum.put("type","类别","string")
        );

        /**
         * 获取用户列表（无分页）
         */
        new SwaggerMapObject(all,
                SwaggerMapColum.put("id","编号","string"),
                SwaggerMapColum.put("name","姓名","string"),
                SwaggerMapColum.put("age","年龄","int")
        );
    }
}
